using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;
namespace Project.Practice.MVP.ExceptionHandling
{
    public class ExceptionHandleProvider
    {
        /// <summary>
        /// A static method which will be called by web application
        /// </summary>
        /// <param name="exception"></param>
        /// <param name="PolicyName"></param>
        /// <returns></returns>
        public static bool HandleException(Exception exception, string PolicyName)
        {
            bool reThrow = false;
            reThrow = ExceptionPolicy.HandleException(exception, PolicyName);
            return reThrow;
        } 
    }
}
